#include "Chain.h"
#include "Squared.h"

Chain::Chain(void)
{
	Squared Rings[10];
	size = 0;
}

Chain::~Chain(void)
{
}
int Chain::X(int ring)
{
	Squared a = Rings[ring];
	return a.X;
	
}
int Chain::Y(int ring)
{
	Squared a = Rings[ring];
	return a.Y;
	
}

int Chain::MoveStep(int ring)
{
	/*Squared a = Rings[ring];
	a.move_step();*/
	Rings[ring].move_step();
	return 0;
	
}

void Chain::AddSqr(Squared rng)
{
	Rings[size] = rng;
	size++;
	return;
}

void Chain::Stop(int ring)
{
	Rings[ring].done = false;
	return;
}

bool Chain::isDone(int ring)
{
	return Rings[ring].done;
}
